//
//  PPTimelineAlbumActivityObject.h
//  pickpic
//
//  Created by Jinxiao on 10/5/16.
//  Copyright © 2016 MicroDream. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "PPAlbumObject.h"
#import "PPTimelineUserObject.h"
#import "PPTimelinePictureObject.h"

@class DGCoreTextEditor;

typedef NS_ENUM(NSUInteger, PPTimelineAlbumActivityType) {
    PPTimelineAlbumActivityTypeUnknown = 0,
    PPTimelineAlbumActivityTypeCreate,
    PPTimelineAlbumActivityTypeUpdate,
    PPTimelineAlbumActivityTypeAdded,
};

@interface PPTimelineAlbumActivityObject : NSObject

@property (readwrite, nonatomic, assign) PPTimelineAlbumActivityType activityType;

@property (readwrite, nonatomic, strong) PPTimelineUserObject *user;

@property (readwrite, nonatomic, strong) NSDate *date;

@property (readwrite, nonatomic, strong) NSString *brief;

@property (readwrite, nonatomic, strong) DGCoreTextEditor *editor;

@property (readwrite, nonatomic, strong) PPAlbumObject *album;

@property (readwrite, nonatomic, strong) NSArray <PPTimelinePictureObject *> *pictures;

@property (readwrite, nonatomic, strong) NSString *version;

+ (instancetype)activityForParameters:(NSDictionary *)parameters;

@end
